System for broadcasting to, and programming, a mobile device in a protocol

ABSTRACT

The present invention is directed, in one embodiment, to a programming interface which enables device/protocol/network independent transmission of messages to, and programming of, mobile devices. In another embodiment, the present invention is directed to data structures maintained on, and supported by, the mobile devices. The present invention also, in another embodiment, provides security for programming messages and an acknowledgement channel over which the mobile device can acknowledge receipt of, and successful implementation of, a programming message.

REFERENCE TO CO-PENDING APPLICATION

[0001] The present application claims priority from U.S. provisional application serial No. 60/070,720 filed on Jan. 7, 1998 entitled FEATURES OF TRANSMISSION AND MANIPULATION OF DATA and Ser. No. 60/075,123 filed Feb. 13, 1998 entitled FEATURES OF A COMMUNICATION CHANNEL and Ser. No. 60/074,236 filed Feb. 10, 1998 entitled FEATURES OF DEVICE DRIVER.

[0002] The present invention hereby fully incorporates by reference U.S. application entitled SYSTEM FOR EFFICIENT ROUTING AND TRANSLATION OF DATA, Ser. No. _____ filed on even date herewith.

BACKGROUND OF THE INVENTION

[0003] The present invention relates to personal mobile computing devices commonly known as mobile devices. More particularly, the present invention relates to a system and method for delivering information to, and programming mobile devices.

[0004] Mobile devices are small electronic computing devices often referred to as personal digital assistants. Many such mobile devices are hand held devices, or palm size devices, which comfortably fit within the hand. One commercially available device is sold under the tradename HandHeld PC (or H/PC) having software provided by Microsoft Corporation of Redmond, Washington.

[0005] Generally, the mobile device includes a processor, random access memory (RAM) , and an input device such as a keyboard and a display The keyboard can be integrated with the display, such as when the keyboard is incorporated as a touch sensitive display. A communication interface is optionally provided and is commonly used to communicate with the desktop computer. A replaceable or rechargeable battery powers the mobile device. Optionally, the mobile device can receive power from an external power source that overrides or recharges the built-in battery.

[0006] In some prior applications, the mobile device is used in conjunction with the desktop computer. For example, the user of the mobile device may also have access to, and use, a desktop computer at work or at home or both. The user typically runs the same types of applications on both the desktop computer and on the mobile device. Thus, it is quite advantageous for the mobile device to be designed to be coupled to the desktop computer to exchange information with, and share information with, the desktop computer.

[0007] Another technique for providing information to such mobile devices is through a wireless transmission link. Such information can include electronic mail or news, weather, sports, traffic and local event information. The information is typically obtained from a desktop computer connected to the Internet and delivered over a wired connection. However, it may be desirable to deliver such Information over a wireless connection as well. A wireless receiver on the mobile device can act to receive information as it is being sent to the mobile device.

[0008] Where the mobile device is or has a pager, each pager in a given system has one or more addresses. When a message is transmitted over a wireless channel, it is destined for an address. All pagers assigned to that wireless channel receive the message and check the address contained in the message against its own addresses. This address-matching algorithm can be implemented either in the hardware, or in software, or in a combination of hardware and software. If the address associated with the incoming message does not match any of the addresses on the pager, then the message is discarded. However, if the address does match one uf the. addresses on the pager, then the message is accepted and forwarded to higher level software in the protocol stack on the pager for suitable processing.

[0009] Addresses can typically be of two types. The first is a personal address which is unique within a given wireless network (i.e., only one pager has that address). The personal address is used for sending a message to a particular pager.

[0010] The second type of address is a broadcast address. A broadcasot address is typically programmed into many pagers within a given wireless network. Thus, a single message delivered over a broadcast address is received and accepted by multiple pagers in the network. Such addresses are used for implementing broadcast services, such as the news, traffic, weather, etc. services mentioned above.

[0011] There is currently no convenient way to reprogram the addresses in mobile devices, such as pagers. Instead, the pagers must be brought back to a service center where special tools are used to access and modify the internal storage of the pager, where the addresses are stored. Some prior systems have attempted to accomplish over-the-air programming. In such systems, the network owner (or carrier) sends a special message to the pager that changes the addresses in the pager.

[0012] However, to date, this has been quite uncommon. Each manufacturer of pagers has its own proprietary message formats and methods in the -radio hardware and software associated with the pager. Thus, a special message needs to be specially formatted for the reprogramming of each of the different manufacturers pagers. In addition, some manufacturers have more than one model or style of pager, each with its own internal proprietary message formats and methods. Thus, even a single manufacturer of pagers would be required to have a variety of special programming messages sent, based upon the particular type of pager being used by the user.

[0013] Further, over-the-air programming presents significant difficulties with respect to security. In other words, if the provider of the broadcast services being programmed wishes to charge users a fee or subscription price to receive the broadcast services, then the programming messages must be highly secure. Otherwise, unauthorized programming of the pager devices to receive the broadcast services would -be problematic.

[0014] Further, with the advent of global computer networks, such as the Internet, and information, broadcast services, have become prevalent and important. However, a typical pager can only have a limited number of addresses (usually 2-8). A much larger number of broadcast services would desirably be offered to suit a wide range of interests and needs for the various users of the pagers. That being the case, each individual user would need to have the pager reprogrammed (by taking it back to a service center) so that it contained the addresses which would select desired broadcast services, desired by the individual user. This would need to be done each time the user wished to add, delete, or change the broadcast services selection. This is highly cost inefficient and is believed to have at least stunted the growth and proliferation of such broadcast services.

[0015] Over-the-air programming also presents another significant hurdle—reliability. For instance, even if a programming message were to be transmitted over the air, the programming message could contain errors once received by the pager, or the pager could be out of the service area, or turned off, when the programming message was transmitted. In a one-way paging system (which is the most prevalent system in the world today) there is no way for a sender to know that the programming message was actually received successfully by the desired pager.

SUMMARY OF THE INVENTION

[0016] The present invention is directed, in one embodiment, to a programming interface which enables device/protocol/network independent transmission of messages to, and programming of, mobile devices. In another embodiment, the present invention is directed to data structures maintained on, and supported by, the mobile devices. The present invention also, in another embodiment, provides security for programming messages and an acknowledgement channel over which the mobile device can acknowledge receipt of, and successful implementation of, a programming message.

BRIEF DESCRIPTION OF THE DRAWINGS

[0017]FIG. 1 is a simplified block diagram illustrating one embodiment of a mobile device in a system in accordance with the present invention.

[0018]FIG. 2 is a more detailed block diagram of one embodiment of a mobile device shown in FIG. 1.

[0019]FIG. 3 is a simplified pictorial illustration of one emboidment of the mobile device shown in FIG. 2.

[0020]FIG. 4 is a simplified pictorial illustration of another embodiment of the mobile device shown in FIG. 2.

[0021]FIG. 5 is a block diagram of one embodiment of a desktop computer in accordance with one aspect of the present invention.

[0022]FIG. 6 is a more detailed block diagram of an originator and mobile device in accordance with one aspect of the present invention.

[0023]FIG. 7 is a flow diagram illustrating over-the-air programming in accordance with one aspect of the present invention.

[0024]FIG. 8 is a flow diagram illustrating programming of a mobile device using a global network, such as the Internet, or the World Wide Web.

[0025]FIGS. 9A and 9B illustrate a portion of an encryption scheme in accordance with one aspect of the present invention.

[0026]FIGS. 10A and 10B illustrate another portion of an encryption scheme in accordance with one aspect of the present invention.

[0027]FIGS. 11A and 11B illustrate the preparation of a programming message in accordance with one aspect of the present

[0028]FIGS. 12A and 12B illustrate the processing of a programming message on the mobile device in accordance with one aspect of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0029]FIG. 1 illustrates a system 10 in which the present invention is illustratively implemented. System 10 includes content provider 12, wireless carrier 14, desktop computer 16 and mobile device 18. Content provider 12 provides any suitable type of data from a database or other data source. For example, content provider 12 is discussed hereinafter as a provider of wireless services or other types of services which may be desired by a user of mobile device 18. Examples of such services include news, weather and sports services, stock quote services, traffic report services, etc.

[0030] Wireless carrier 14 is described in greater detail later in the application. Briefly, however, wireless carrier 14 is configured to receive service content and programming messages (hereinafter content) from content provider 12 via dial-up or direct internet connection, or a network connection. The way in which wireless carrier 14 obtains information from content provider 12 can include proprietary or non-proprietary means. For example, in one illustrative embodiment, wireless carrier 14 subscribes to active channels at a content provider's web site using the Internet Explorer product available from Microsoft Corporation. The Internet Explorer component pulls data from the web site and stores it on a cache for later transmission to mobile device 18.

[0031] Wireless carrier 14 also includes a wireless information server (WIS) 20. Server 20 has components which can pull data from content provider 12 as well. Server 20 also splits the content received from content provider 12 into pieces which are compatible with the particular type of transport being used by wireless carrier 14. For instance, server 20 may split the data such that it conforms to maximum packet size constraints, character set requirements, etc. for the channel type or transport type being used. Prior to transmission, the data is preferably translated to a different form. As is described in greater detail later in the application, such translation may include various forms of encryption, and may also include compression, encoding, etc. Once the data has been split appropriately such that it conforms to the transport constraints, the data is then configured for transmission over the air through a wireless network (such as through a paging channel) to be received directly on mobile device 18. The transmitted data is received by a wireless receiver and driver component 22 on mobile device 18 where the-data is prepared for use by mobile derice 18.

[0032] Mobile device 18 also preferably includes a modem 24. Thus, rather than being transmitted through wireless carrier 14, the service content can be transmitted directly from content provider 12 through a direct dial-up modem connection to mobile device 18.

[0033] Desktop computer 16 will also be described in greater detail later in the specification. Briefly, however, desktop computer 16 is preferably provided with a standard web browser, such as Internet Explorer 4.0, commercially available from the Microsoft Corporation of Redmond, Wash. That being the case, the users of desktop computer 16 can preferably subscribe to channels in a standard fashion which provide the user with certain channel content which can be browsed off-line or on-line. Desktop computer 16 can thus periodically retrieve or receive new content for further transmission to mobile device 18.

[0034] Desktop computer 16 alsc preferably includes synchronization component 26. Briefly, synchronization component 26 is configured to interact with a similar synchronization component 28 on mobile device 18 such that files which are the subject of synchronization can be synchronized from desktop computer 16 to mobile device 18, or vice versa. Once synchronized, both files (those on computer 16 and mobile device 18) contain up to date information.

[0035] More specifically, mobile device 18, in the preferred embodiment, can be synchronized with either desktop computer 16, or another mobile device 18, or both. In that instance, properties of objects stored in an object store on mobile device 18 are similar to properties of other instances of the same object storms in an object store on desktop computer 16 or another mobile device 18. Thus, for example, when a user changes one instance of an object stored in an object store on desktop computer 16, the second instance of that object in the object store of mobile device 18 is updated the next time mobile device 18 is connected to desktop computer 16 so that both instances of the same object contain up-to-date data. This is referred to as synchronization.

[0036] In order to accomplish synchronization, synchronization components 26 and 28 run on both mobile device 18 and desktop computer 16 (or another mobile device 18). The synchronization components communicate with one another through well defined interfaces to manage communication and synchronization.

[0037] It is worth noting that, in the preferred embodiment, while mobile device 18 can be coupled to desktop computer 16, it can be also coupled to another mobile device 18. This connection-can be made using any suitable, and commercially available, communication link and using a suitable communications protocol. For instance, in one preferred embodiment, mobile device 18 communicates with either desktop computer 16 or another mobile device 18 with a physical cable which communicates using a serial communications protocol. Other communication mechanisms are also contemplated by the present invention, such as infra-red (IR) communication or other suitable communication mechanisms.

[0038]FIG. 2 is a more detailed block diagram of mobile device 18. Mobile device 18 preferably includes microprocessor 30, memory 32, input/output (I/O) components 34, desktop communication interface 36 wireless receiver 37 and antenna 39. In a preferred embodiment, these components of mobile 10 are coupled for communication with one another over a suitable bus 38.

[0039] Memory 32 is preferably implemented as non-volatile electronic memory such as random access memory (RAM) with a battery back-up module (not shown) such that information stored in memory 32 is not lost when the general power to mobile device 18 is shut down. A portion of memory 32 is preferably allocated as addressable memory for program execution, while another portion of memory 32 is preferably used for storage, such as to simulate storage on a disc drive.

[0040] Memory 32 includes operating system 40, an can be used in accordance with the present invention. Mobile device 18, as illustrated in FIG. 3, can be a desktop assistant sold under the designation H/PC having software provided by the Microsoft Corporation. In one preferred embodiment, mobile-device 18 includes a miniaturized keyboard 43, display 45 and stylus 46. In the embodiment shown in FIG. 3, display 45 is a liquid crystal display (LCD) which uses a contact sensitive display screen in conjunction with stylus 46. Stylus 46 is used to press or contact the display 45 at designated coordinates to accomplish certain user input functions. Miniaturized keyboard 43 is preferably implemented as a miniaturized alpha-numeric keyboard, with any suitable and desired function keys which are also provided for accomplishing certain user input functions.

[0041]FIG. 4 is another simplified pictorial illustration of the mobile device 18 in accordance with anoLlier preferred embodiment of the present invention. Mobile device 18, as illustrated in FIG. 4, includes some items which are similar to those described with respect to FIG. 3, and are similarly numbered. For instance, mobile device 18, as shown in FIG. 4, also includes touch sensitive screen 45 which can be used, in conjunction with stylus 46, to accomplish certain user input functions when mobile device 18 is implemented as a pager, screen 45 is not touch sensitive and stylus 46 is not needed.

[0042] It should be noted that the display 45 for the mobile device as shown in FIGS. 3 and 4 can be the same size as one another, or different sizes from one another, but would typically be much smaller than a conventional display used with a desktop computer. For example, displays 45 shown in FIGS. 3 and 4 may be defined by a matrix of only 240×320 coordinates, or 160×160 coordinates, or any other suitable size..

[0043] The mobile device 18 shown in FIG. 4 also includes a number of user input keys or buttons (such as scroll buttons 47) which allow the user to scroll through menu options or other display options which are displayed on display 45, or which allow the user to change applications or select user input functions, without contacting display 45. In addition, the mobile device 18 also shown in FIG. 4 also preferably includes a power button 49 which can be used to turn on and off the general power to the mobile device 18.

[0044] It should also be noted that, in the embodiment illustrated in FIG. 4, mobile device 18 includes a hand writing area 51. Hand writing area 51 can be used in conjunction with stylus 46 such that the user can write messages which are stored in memory 42 for later use by the mobile device 18. In one illustrative embodiment, the hand written messages are simply stored in hand written form and can be recalled by the user and displayed on the display screen 45 such that the user can review the hand written messages entered into the mobile device 18. In another preferred embodiment, mobile device 18 is provided with a character recognition module such that the user can enter alpha-numeric information into mobile device 18 by writing that alpha-numeric information on area 51 with stylus 46. In that instance, character recognition module in the mobile device 18 recognizes the alpha-numeric characters and converts the characters into computer recognizable alpha-numeric characters which can be used by the application programs 42 in mobile device 18.

[0045] Of course, where mobile device 18 is implemented as a pager, stylus 46 and handwriting area 51 are not needed. Instead, mobile device 18 is simply provided with screen 45, user input buttons 47-and power button 49, or other suitable items.

[0046]FIG. 5 and the related discussion are intended to provide a brief, general description of a suitable desktop computer 16 in which portions of the invention may be implemented. Although not required, the invention will be described, at least in part, in the general context of computer-executable instructions, such as program modules, being executed by a personal computer 16 or mobile device 18. Generally, program modules include routine programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Moreover, those skilled in the art will appreciate that desktop computer 16 may be mLplemented with other computer system configurations, including multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, and the like. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.

[0047] With reference to FIG. 5, an exemplary system for implementing desktop computer 16 includes a general purpose computing device in the form of a conventional personal computer 16, including processing unit 48, a system memory 50, and a system bus 52 that couples various system components including the system memory 50 to the processing unit 48. The system bus 52 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus; and a local bus using any of a variety of bus architectures. The system memory 50 includes read only memory (ROM) 54 a random access memory (RAM) 55. A basic input/output system (BIOS) 56, containing tihe basic routine that helps to transfer information between elements within the desktop computer 16, such as during start-up, is stored in ROM 54. The desktop computer 16 further includes a hard disk drive 57 for reading from and writing to a hard disk (not shown) a magnetic disk drive 58 for reading from or writing to removable magnetic disk 59, and an optical disk drive 60 for reading from or writing to a removable optical disk 61 such as a CD ROM or other optical media. The hard disk drive 57, magnetic disk drive 58, and optical disk drive 60 are connected to the system bus 52 by a hard disk drive interface 62, magnetic disk drive interface 63, and an optical drive interface 64, respectively. The drives and the associated computer-readable media provide nonvolatile storage of computer readable instructions, data structures, program modules and other data for the desktop computer 16.

[0048] Although the exemplary environment described herein employs a hard disk, a removable magnetic disk 59 and a removable optical disk 61, it should be appreciated by those skilled in the art that other types of computer readable media which can store data that is accessible by a computer, such as magnetic cassettes, flash memory cards, digital video disks (DVDs), Bernoulli cartridges, random access memories (RAMs), read only memory (ROM), and the like, may also be used in the exemplary operating environment.

[0049] A number of program modules may be stored on the hard disk, magnetic disk 59, optical disk 61, ROM 54 or RAM 55, including an operating system 6S, one or more application programs 66 (which may include PIMs), other program modules 67 (which may include synchronization component 26), and program data 68. A user may enter commands and information into the desktop computer 16 through input devices such as a keyboard 70, pointing device 72 and microphone 74.

[0050] Other input devices (not shown) may include a joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit 48 through a serial port interface 76 that is coupled to the system bus 52, but may be connected by other interfaces, such as a sound card, P parallel port, game port or a universal serial bus (USB) A monitor 77 or other type of display device is also connected to the system bus 52 via an interface, such as a video adapter 78. In addition to the monitor 77, desktop computers may typically include other peripheral output devices such as speaker 75 and printers.

[0051] The desktop computer 16 may operate in a networked environment using logic connections to one or more remote computers (other than mobile device 18), such as a remote computer 79. The remote computer 79 may be another personal computer, a server, a router, a network PC, a peer device or other network node, and typically includes many or all of the elements described above relative to desktop computer 16, although only a memory storage device 80 has been illustrated in FIG. 4. The logic connections depicted in FIG. 4 include a local area network (LAN) 81 and a wide area network (WAN) 82. Such networking environments are commonplace in offices, enterprise-wide computer network intranets and the Internet.

[0052] When used in a LAN networking environment, the desktop computer 16 is connected to the local area network 81 through a network interface or adapter 83. When used in a WAN networking environment, the desktop computer 16 typically includes a modem 84 or other means for establishing communications over the wide area network 82, such as the Internet. The modem 84, which may be internal or external, is connected to the system bus 52 via the serial port interface 76. In a network environment, program modules depicted relative to desktop computer 16, or portions thereof, including synchronization component 26, may be stored in local or remote memory storage devices. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.

[0053] Desktop computer 16 runs operating system 65 that is typically stored in non-volatile memory 54 and executes on the processor 48. One suitable operating system is a Windows brand operating system sold by Microsoft Corporation, such as Windows 95 or Windows NT, operating systems, other derivative versions of Windows brand operating systems, or another suitable operating system. Other suitable operating systems include systems such as the Macintosh OS sold from Apple Corporation, and the OS/2 operating system sold by International Business Machines (IBM) of Armonk, N.Y. Application programs are preferably stored in program module 67, in volatile memory or non-volatile memory, or can be loaded into any of the components shown in FIG. 5 from a floppy diskette 59, CDROM drive 61, downloaded from a network via network adapter 83, or loaded using another suitable mechanism.

[0054] A dynamically linked library (DLL), comprising a plurality of executable functions is associated with PIMs in the memory for execution by processor 48. Interprocessor and intercomponent calls are facilitated using the component object model (COM) as is common in programs written for Microsoft Windows brand operating systems. Briefly, when using COM, a software component such as a DLL has a number of interfaces. Each interface exposes a plurality of methods, which can be called individually to utilize different services offered by the software component. In addition, interfaces are provided such that methd's or functions can be called from other software components which optionally receive and return one or more parameter arguments.

[0055] In general, the DLL associated with the particular PIM or other program is designed specifically to work in conjunction with that PIM and to expose desktop synchronization interfaces that function as described in more detail in the above-referenced co-pending U.S. patent application according to a synchronization protocol. The DLL, in turn, calls interfaces exposed by the PIM in order to access data representing individual properties of objects maintained in an object store. The object store 6, of course, can reside in any one of the suitable memory components described with respect to FIG. 4.

[0056]FIG. 6 is a more detailed block diagram of an originator 200, and a mobile device 18 which illustrates programming of mobile device 18 in accordance with one aspect of the present invention. It should be noted that originator 200 can be any source of programming information, such as content or service provider 12, or a wireless carrier 14, or any other suitable broadcast services provider. Originator 200 includes cryptography component 202 and programming message originator component (PMOC) 204. FIG. 6 also illustrates transmission link 206 which links originator 200 and mobile device 18. As described above, transmission link 206 can comprise a wireless transmission link, transmission through synchronization with a desktop computer and synchronization components 26 and 28, transmission through a global computer no ork (such as the Internet), or another source via a modem, an intranet, or transmission simply through the transfer of a floppy disk containing the necessary information.

[0057] Mobile device 18 is also illustrated in greater detail. Mobile device 18 includes radio hardware (or radio HW) 208 which corresponds to the actual radio receiver hardware in mobile device 18. Mobile device 18 also includes driver 210 which interfaces with radio HW 208 to pass information to radio HW 208 and receive information from radio HW 208. Device 18 also includes programming message processing component (PMPC) 212 which can be implemented in any suitable memory in mobile device 18. PMPC 212 receives messages transmitted over transmission link 206 and processes them in accordance with the techniques described below.

[0058]FIG. 7 is a flow diagram illustrating programming of mobile device 18 in accordance with one aspect of the present invention. FIG. 7 will be described also with reference to FIG. 6. FIG. 7 specifically illustrates a system by which mobile device 18 is programmed using over-the-air programming. First, PMOC 204 on originator 200 receives the desired programming data to program mobile device 18. This is indicated by block 214.

[0059] PMOC 204 then accesses cryptography component 202 and creates a signed and encrypted programming message for transmission over transmission link 206 to mobile device 18. Encryption of the programming data into an encrypted programming message can be accomplished in any number of suitable ways. One method by which the encryption is implemented is described in greater detail below with respect to FIGS. 9A-11B. Encryption of the programming data into an encrypted programming message is indicated by block 216. The data can also be subjected to additional processing, such as compression, encoding, etc.

[0060] Next, the data is transmitted from originator 200 to mobile device 18. As described with respect to FIG. 6, the data can be transmitted over any suitable transmission link. With respect to the embodiment described in FIG. 7, transmission link 206 is a wireless transmission link, such as a radio frequency paging channel in which PMOC 204 provides the encrypted programming message to a radio transmitter which transmits it to radio HW 208 of mobile device 18, where the message is received. Transmission of the encrypted programming message to mobile device 18 is illustrated by block 218 in FIG. 7.

[0061] As is described in greater detail below, the encrypted programming message has a header appended thereto. The message is passed to a message router component which routes the message to PMPC 212 and through various processing steps. The header indicates the types of processing the message was subjected to prior to transmission, and the message is subjected to complementary processing (such as decoding, decompression, etc.) after being received. Receiving the message is indicated by block 220.

[0062] The router passes the message to PMPC 212 on mobile device 18. This is indicated by block 222. PMPC 212 performs any necessary translations on the encrypted programming message. PMPC 212 also detects, based on the header information, that the message is a programming message and invokes an appropriate input/output (I/O) control call to place tbf message in proper form so that it can be passed back to driver 210 in a desired format. In the preferred embodiment, PMPC 212 invokes I/O control calls to driver 210 using appropriate application programming interfaces (APIs) which are described in greater detail below. For example, the header information may identify that the programming message is a new address programming message. In that case, PMPC 212 invokes a RADIO_PROGRAMMING I/O control call with a subparameter ADDRESS_PROGRAMMING to program a new address. The encrypted programming data is passed to driver 210 which calls a library function DecryptAndValidatePgmData() to decrypt and validate the programming data. Passage of the programming data, in the proper form, to the driver 210 is illustrated by block 224.

[0063] After driver 210 has decrypted and validated the programming message, the programming data is obtained in its original, unencrypted form. Driver 210 then places the actual programming data in appropriate output buffers in driver 210 for retrieval, or places them in input buffers on radio HW 208. Radio HW 208 can then perform the necessary programming in accordance with the actual programming data provided. This is indicated by blocks 226 and 228.

[0064]FIG. 8 is a flow diagram illustrating programming of mobile device 18 using over-the-web programming. First, a user of mobile device 18, in one exemplary embodiment, logs onto the web site of the broadcast service provider of the services desired by the user. The user provides authentication information at the web site of originator 200, from-the desktop computer 16. Such authentication information can, in one example, include the users name and the personal identification number (PIN) of the mobile device 18 for which programming is sought. This is indicated by block 230 in FIG. 8.

[0065] The user then requests a change in the subscription services received on mobile device 18. Such a change may include addition of a service, deletion of a service or modification of a service and will likely require reprogramming of the addresses, or other information, stored in mobile device 18, so that mobile device 18 can receive a new subscription service, or so that a subscription service can be cancelled and no longer provided to mobile device 18. The user typically provides this information from the desktop computer through which the originator's website has been accessed. This is indicated by block 232.

[0066] Originator 200 then creates a signed and encrypted programming message for eventual transmission to mobile device 18. This is described in greater detail below and is illustrated by block 234.

[0067] After the encrypted programming message is created at originator 200, it is transmitted over transmission link 206 to mobile device 18. In the embodiment illustrated in FIG. 8, transmission link 206 comprises an Internet connection between the user's desktop computer and the website of the originator. Thus, the crypted programming message is transferred to the user's desktop computer, as illustrated by block 236.

[0068] The user then connects mobile device 18 to the desktop computer. As described above, this type of connection can be formed in any suitable manner, such as through a hardwire connection (or cable) using serial communication, through an infrared transmission link, or through any other suitable connection mechanism. This is indicated by block 238.

[0069] The user then requests synchronization between the desktop computer and mobile device 18. As described above, synchronization components 26 and 28 interact according to a synchronization protocol which causes the encrypted programming message to be synchronized to mobile device 18. More specifically, synchronization component 28 causes the encrypted message to be transferred to PMPC 212 on mobile device 18. The synchronization step is illustrated by block 240.

[0070] From this point, processing continues in exactly the same fashion as it did beginning with block 224 of the over-the-air programming system set out in FIG. 7. Similar blocks are similarly numbered to those shown in FIG. 7. Specifically, PMPC 212 executes any translations required on the encrypted programming message and places the encrypted programming message in proper form so that it can be passed to driver 210. PMPC 212 then invokes I/O control calls to driver 210 using appropriate APIs, in order to pass the encrypted programming message back to driver 210 for decryption and validation. This is indicated by block 224.

[0071] Once the data has been decrypted and validated by driver 210, the programming data, in its unencrypted form, is placed in appropriate buffers. This is indicated by block 226.

[0072] Radio HW 208 then executes the programming operation according to the programming data received by driver 210. This is indicated by block 228.

[0073] It should be noted that the present system for programming the radio HW 208 on mobile device 18 is protocol, channel, and device independent. In other words, once the encrypted programming message is provided to PMPC 212, the process for providing that information to driver 210, and decrypting and validating the programming message at driver 210 is exactly the same, regardless of what specific radio HW device 208 is provided, and regardless of the channel or transmission protocol over which the programming message was received.

[0074]FIGS. 9A and 9B illustrate a portion of the encryption scheme performed by cryptography component 202 and PMOC 204 on originator 200. Of course, other suitable encryption schemes can be utilized, but FIGS. 9A and 9B illustrate a portion of one illustrative encryption scheme. Specifically, FIGS. 9A and 9B illustrate the formation of an encryption key for use in the encryption scheme in accordance with one aspect of the present invention.

[0075] In order to obtain the encryption key, the present invention uses message specific data 242, base key 244, and encryption data 246. The message specific data 242 is preferably a part of the message itself with a required property that it changes with each programming message being sent. Base key 244, in one illustrative embodiment, is the electronic identification (EID) of mobile device 18. However, base key 244 could also be any other key as well. Encryption data 246 is preferably formed of other known bytes or data strings. The information in blocks 242, 244 and 246 is provided to a hashed messaged authentication code (HMAC) generator 248. HMAC generator 248 derives a hash value that is used for seeding or biasing a key derivation algorithm. This biasing component is provided to key derivation component 250, which acts upon the biasing component in order to derive an encryption key 252.

[0076]FIG. 9B is a flow diagram illustrating operation of the components shown in the block diagram of FIG. 9A. First, the message specific data 242, the base key 244, and the encryption data 246 are obtained. This is indicated by blocks 254, 256 and 258. Next, the HMAC biasing component is calculated. This is indicated by block 260. Finally, the biasing component is used to derive the encryption key 254. This is indicated by block 262. In one illustrative emboidment, the API CryptDeriveKey is used in order to derive the encryption key. The API CryptDeriveKey is a standard Windows API which derives a key for standard cryptography algorithms.

[0077] It should be noted that, since the message specific data 242 changes with each message, the derived encryption key 252 will also be different for each message. This is a preferred technique for deriving such a key. Without this technique, one can compare an encrypted message with a decrypted message and simply use those two items to compute the key for subsequent messages. However, since the key changes with each message, even if one key is derived, it cannot be used to decipher later messages.

[0078]FIGS. 10A and 10B illustrate the generation of a signing key in accordance with one aspect of the present invention. A number of items are Similalry numbered to those shown in FIGS. 9A and 9B, and are similarly numbered. As with the technique illustrated in FIG. 9A, a number of components are used to form a signing key 266 in accordance with the present invention. Message specific data 242, base key 244 and signing string 264 are provided to HMAC generator 248. The message specific data 242 and base key 244 are described with respect to FIGS. 9A and 9B above. The signing string 264 is similar to the encryption string 246. However, signing string 264 is formed of other known bytes, preferably formed as a dana string. HMAC generator 248 again generates a seeding or biasing value which is provided to derive a signing key as illustrated by block 250. As with FIG. 9A, the signing key is preferably formed using the CryptDeriveKey, standard Windows API in order to provide signing key 266.

[0079]FIG. 10B is a flow diagram illustrating the operation of the components shown in the block diagram of FIG. 10A. First, message. specific data 242, base key 244 and signing data 264 are obtained. This is indicated by blocks 268, 270 and 272. Next, HMAC generator 248 calculates the biasing component based on the input components. This is indicated by block 274.

[0080] The biasing component is then used to bias the signing key derivation algorithm in order to obtain the signing key 266. This is indicated by block 276.

[0081] Once the signing key and encryption keys have been derived, the programming message can be prepared for transmission over transmission link 206. FIGS. 11A and 11B illustrate the preparation of the programming message for transmission over transmission link 206. The programming data 278 and the signing key 266 are applied to HMAC generator 248. This provides a signature value 280 which is based on the programming data 278 and the signing key 266. The digital signature 280 is then added to programming data 278 as indicated by block 282. The programming data 278, along with its signature 280, are then encrypted using encryption key 252. In other words, the programming data 278, along with its signature 280, and encryption key 252, are provided to encryption component 282 and any suitable encryption technique can be used. The output of encryption component 282 is an encrypted message 284 which corresponds to the programming data 278, along with its signature 280, as encrypted by the encryption key 252.

[0082] The encrypted message 284 is appended to the message specific data 242, in its unencrypted form (or plain text form). A header is added to the encrypted message 284 and message specific data 242. This is indicated by block 286. The message can be further passed through other translations such as compression, encoding, etc. The entire programming message 288 thus includes header 290, encrypted message 284, and message specific data 242. Header 290 is preferably a sequence of bytes which serves a number of purposes. First, it identifies the message 288 as a programming message. Next, it identifies the start and end of the encrypted portion 284 of the message, and the start and end of the message specific data portion 242 of the message (which is not encrypted). Finally, header 290 identifies whether the EID was used as the base key.

[0083]FIG. 11B is a flow diagram illustrating the preparation of a programming message as described with respect to FIG. 11A. First, the programming message is obtained as indicated by block 292. Then the signing key 266 is obtained. This is indicated -by block 294. The HMAC component 282 is then run in order to obtain signature 280. This is indicated by block 296.

[0084] The programming data is then joined with its signature. This is indicated by block 298. The encryption key is obtained and the programming data, along with its signature, is encrypted using the encryption key in order to form the encrypted message. This is indicated by blocks 300 and 302. The message specific data 242 is appended to the encrypted message, and a header is added in order to from the entire programming message transmitted over transmission link 206. Other translations can also be performed prior to transmission. These final steps are indicated by blocks 304 and 306.

[0085] The prepared message is transmitted over transmission link 206 where it eventually ends up at PMPC component 212, as described above. Once the programming rnmessage is received by PMPC 212, it is placed in proper form for being passed to driver 210 and eventually radio HW 208, where the programming is actually carried out.

[0086]FIG. 12A is a more detailed block diagram of radio HW 208 and driver 210 in order to illustrate the processing in those components. FIG. 12A illustrates that radio HW 208 preferably maintains a plurality of data structures. The data structures illustrated in radio HW 208 in FIG. 12A are illustrated as tables. However, this is an exemplary illustration only. Radio HW 208 is, in actuality, free to store the data in some other manner to optimize storage or speed of access.

[0087] Also, it is not necessary for radio HW 208 to store these data structures at all. That may simply be a preferable implementation when radio HW 208 is implemented as a removable hardware item (e.g., a radio PCMCIA type card). Storing the data structures on the radio HW 208 in non-volatile memory enables a user to remove the card from one mobile device 18 and plug it into another and carry the information easily to the new device. It also allows for implementing more of the functions in the radio hardware. However, device driver 210 can also store these data structures in system memory and carry out the functions in software, although this may be less preferable in some respects.

[0088] In any case, FIG. 12A illustrates one embodiment in which radio HW 208 maintains key-table 310, address table 312, group information table 314, group index table 316, and carrier and manufacturer information table 318. These data structures are fully described below.

[0089] Address Table

[0090] This table is used to store address related information. Expir- ey ation Address Address ddressN escrip- Status ndex Date Tag Info me tion (1) 1) (2) (8) n) 32) * 64) * 0x01 401 PERSONAL 0x01 0 EXEC 0x01 534 NEWS 0x00 0 (empty)

[0091] Status: This is a flag byte. The following are illustrative flags: Flag Name Value Meaning ADDRESS_FLAG_(—) 0x01 If set, the address is ENABLE enabled (message received on this address will be processed) If not set, messages received on this address are discarded by the card. ADDRESS_FLAG_(—) 0x02 If set, messages of this PRIORITY address should be delivered to the higher levels immediately (e.g. personal address) . If not set, the messages can be buffered internally for later delivery. ADDRESS_FLAG_(—) 0x04 This address is enabled only AC_ONLY when external power is available. ADDRESS_FLAG_PO_(—) 0x08 This address is enabled only ONLY when the device is powered on. 0x10-0x80 Reserved for future use

[0092] KeyIndex: If non-0, index into the key table for the associated key. This key is used when a message arrives on this address that does not use any service group code.

[0093] ExpirationDate If non-0, it indicates the date on which this address would be disabled. It is stored as, for example, number of days from Jan. 1, 1997. Midnight is assumed (thus the expiration date is the last day of the serviceY. Note that card or the driver may not be expected to act on this value—higher level applications will access and act on this value.

[0094] AddressTag: Tag for the address. The address tag is used only internally for programming and accessing the addresses.

[0095] AddressInfo: This is the address and associated information for the use of the underlying network (e.g. in FLEX system, this would be the capcode and associated properties such as Collapse value, Phase, etc. In cellular systems, this would be the EIN (equipment identification number)).

[0096] AddressName: Descriptive name for the address (e.g. MSNBC, NewsNow, etc.).

[0097] Description: Descriptive text for the address (e.g. “Your stock and company news channel”).

[0098] Overall Size=(1+1+2+8+32)*16=704 Bytes (For a Flex radio)

[0099] Key Table

[0100] This table is used to store security related information. This is illustratively a pooled resource as one or more service groups or addresses can share the same key. KeyTag AlgCode Key (8) (4) (16)

[0101] Overall Size=(8+4+16)*16=448 bytes

[0102] Service Group Info. Table and Service Group Index Table

[0103] The service group table stores information on the service groups. Typically, look up for service group code and associated key is a more frequent and time critical task than insertion or deletion of service groups. Thus, the driver preferably has a data structure designed to accommodate this.

[0104] In the suggested implementation below, service group entries are sorted by address numbers and then by service group codes. A separate Service group index table stores index for the last entry for any given address. (It should be noted that his is simply one example implementation. It is optimized for service group code look up and to minimize the storage requirement. It requires that each time a new service group is defined, the table entries be shifted down to make space for it. However, other suitable implementation can be used as well.

[0105] In one illustrative embodiment, when an address is disabled, its service group entries are not removed or altered in anyway (however, since the card discards the messages for that address anyway, these entries will not be used).

[0106] KeyIndex is the index into the Key Table that is associated with this service group. Index 0 is reserved to mean “no key exists—the content for this service group is not encrypted”.

[0107] ServiceGroupCode Service group code in the printable ASCII range of 0×20 and 0×7E.

[0108] Status: This is a flag byte. The following flags are illustratively defined: Flag Name Value Meaning GROUP_FLAG_(—) 0x01 If set, the service group is enabled ENABLE (message received on this service group will be processed). If not set, messages received on this service group are discarded by the driver. GROUP_FLAG_(—) 0x02 If set, messages of this service group PRIORITY should be delivered to the higher levels immediately (e.g. Stock alert service group). If not set, the messages can be buffered internally for a later delivery. GROUP_FLAG_(—) 0x04 This service group is enabled only when AC_ONLY external power is available. GROUP_FLAG_(—) 0x05 This service group is enabled only when PO_ONLY the device is powered on. 0x10- Reserved for future use 0x80

[0109] KeyIndex: If non-0, index into the key table for the associated key. This key is used when a message arrives on this service group code.

[0110] ExpirationDate If non-0, it indicates the date on which this service group would be disabled. It is stored, for example, as number of days from Jan. 1, 1997. A time 12:01AM is assumed. Note that card or the driver is illustratively not expected to act on this value—higher level applications will access and act on this value.

[0111] ServiceGroupTag: Tag for the service group. The service group tag is used only internally for programming and accessing the service groups.

[0112] ServiceGroupName: Descriptive nave for the Service group (e.g. “International News”, “Local Weather”, etc.). Suggested size of this field is 32 but OEM can support more.

[0113] Description: Descriptive text for the service group (e.g. “News from all around the world that affects your little community”). Suggested size of this field is 64 but OEM can support more.

[0114] Index table is used to quickly locate a service group for a given address.

[0115] Overall Size=(1+1+1+2+8)*64=832 (Service group table) (1)*16=16 (Index table)=848 bytes

[0116]FIG. 12A also illustrates that driver 210 supports a library containing certain functions that are generic to the system, but which are preferably performed at the driver level for the sake of increased efficiency or security. The support library is statically linked to the remainder of the driver components. The driver support library illustrated in FIG. 12A includes the AnalyzeMessage function 320, the DeriveEncryptionKey function 322 and the DecryptAndValidateRadioPgmData function 324. These functions are described in detail later in the application.

[0117] Also, in the preferred embodiment, PMPC 212 is configured to invoke a number of I/O control calls to perform various operations. Driver 210 supports and implements the I/O control calls according to a predefined syntax and operation which is also described below.

[0118] The general type definitions used in the driver API will now be described. It should be noted. that most of the following types map substantially directly to the data structures described above, although this is not necessary.

[0119] The following basic types are used:

[0120] BYTE unsigned 8-bit

[0121] WORD Signed 16-bit

[0122] DWORD Signed 32-bit

[0123] TEXT String stored in a BYTE array. Since the length of the string is usually available in another field, null termination is not required.

[0124] The following type definitions indicate illustrative minimum size which the driver needs to support. The struct used in Lxie API have actual length in another field.

[0125] RADIO_TAG struct

[0126] TEXT Value[8] Tags are used to identify a particular address, service group, or key entry

[0127] RADIO_KEY struct

[0128] BYTE Value[16] Stores the encryption keys.

[0129] RADIO_NAME struct

[0130] TEXT Value[32] Stores carrier name, manufacturer name, Address name, etc.

[0131] RADIO_DESC struct

[0132] TEXT Value[64] Stores description of the card, services, addresses, etc.

[0133] Complex Types (Structs)

[0134] All structures have the following two fields at the beginning:

[0135] WORD wStructSize Each struct has fixed size fields followed by the length of the variable fields. The variable fields follow in the same order as their lengths. The wStructSize field holds the size in bytes of the fixed part of the struct (i.e., fixed fields and the lengths of the variable fields). This field provides a versioning method as well that will be used for backward compatibility in the future releases.

[0136] DWORD dwMemberValidMask A mask indicating which fixed size fields of the struct are valid and can be used (for variable size fields, a length of 0 indicates that the field is not present) This allows us to use the same struct even if some fields are not required. This is especially useful when programming a single field within a struct without changing the values of other fields.

[0137] In addition the variable length fields are grouped towards the end a length field for each one of them is provided. This allows expanding these structures without losing backward or forward compatibility. When accessing the variable length fields, the driver should use the wstructSize field's value as the start offset for the first variable length field. This will allow for forward compatibilty when additional fields are added to the struct (using wStructSize field ensures that these new fields will be ignored by the legacy drivers).

[0138] Although a wide variety of specific struct types are used in the normal operation of the driver API, only those related to programming are discussed herein. Such structs include the following:

[0139] Struct RADIO_ADDRESS

[0140] This struct contains information about the address.

[0141] DWORD dwMemberValidMask A mask indicating which fields of the struct are valid. Construct the value by

[0142] ‘OR’ing one or more of the following:

[0143] 0×0001 AddressNumber field is valid

[0144] 0×0002 Status field is valid

[0145] 0×0004 ExpirationDate field is valid

[0146] BYTE AddressNumber Address entry number. Address entries are numbered 0 onwards.

[0147] BYTE Status Status flags.

[0148] BYTE ExpirationDate[2] Expiration date-0if none.

[0149] BYTE AddressTagLen Length of the AddressTag field.

[0150] BYTE KeysagLen Length of the KeyTag fie ld.

[0151] BYTE AddressNameLen Length of the AddressName field

[0152] WORD wAddressDescriptionLen Length of the AddressDescription field.

[0153] WORD wAddressInfoLen Length of the AddressInfo field.

[0154] RADIO_TAG AddressTag Address Tag.

[0155] RADIO_TAG KeyTag Associated key for this address. (If the field is not present, then no key is associated with the address).

[0156] RADIO_DESC AddressDescription Description for the address. Note that this information is illustratively not required to be in non-volatile memory. It is displayed to the user for information purpose only.

[0157] RADIO_ADDRESS AddressInfo Address and associated information fields. This struct is protocol specific. For FLEX protocol it may contain the capcode information encoding collapse value, phase, address, etc.

[0158] Struct RADIO_GROUP

[0159] This struct contains information about the service group:

[0160] WORD wStructSize sizeof(RADIO_GROUP)

[0161] DWORD dwMemberValidmask A mask indicating which fields of the struct are valid. Construct the value by ‘OR’ing one or more of the following:

[0162] 0×0001 GroupNumber field is valid

[0163] 0×0002 Status field is is valid

[0164] 0×0004 GroupCode field is valid

[0165] 0×0008 ExpirationDate field is valid

[0166] WORD wGroupNumber service group number. Service groups are numbered 0 onwards.

[0167] BYTE Status Status flags.

[0168] BYTE GroupCode Service group code

[0169] BYTE ExpirationDate[2] Expiration date. 0 if none.

[0170] BYTE GroupTagLen Length of the GroupTag field.

[0171] BYTE KeyTagLen Length of the KeyTag field.

[0172] BYTE AddressTagLen Length of the GroupTag field.

[0173] BYTE GroupNameLen Length of the GroupName field.

[0174] WORD wGroupDescriptionLen Length of the GroupDescription field.

[0175] RADIO_TAG GroupTag Service group Tag.

[0176] RADIO_TAG KeyTag Associated key fox this service group. (If the field is not present, then no key is associated with the service group).

[0177] RADIO_TAG AddressTag Address this service group belongs to.

[0178] RADIO_DESC GroupDescription Description for the service group. Note that this information is not required to be stored in the non-volatile memory. It is displayed to the user for information purpose only.

[0179] Struct RADIO_KEY

[0180] This struct contains information about the encryption keys

[0181] WORD wStructSize sizeof(RADIO_KEY)

[0182] DWORD dwMemberValidMask A mask indicating which fields of the struct are valid Construct the value by ‘OR’ing one or more of the following:

[0183] 0×0001 KeyNumber field is valid

[0184] 0×0002 dwAlgCode field is valid

[0185] BYTE KeyNumber Key number. Keys are numbered 1 onwards.

[0186] DWORD dwAlgCode Encryption algorithm code.

[0187] BYTE KeyTagLen Length of the KeTag field.

[0188] BYTE KeyLen Length of the Key field.

[0189] RADIO_TAG KeyTag Key Tag.

[0190] RADIO_KEY Key The encryption.key.

[0191] struct RADIO_PGM

[0192] This struct is used for programming addresses, service groups, keys, etc.

[0193] WORD wStructSize sizeof(RADIO PGM)

[0194] DWORD dwMemberValidMask A mask indicating which fields of the struct are valid. Construct the value by ‘OR’ing one or more of the following:

[0195] 0×0001 OperationCode field is valid

[0196] 0×0002 TypeCode field is valid

[0197] BYTE OperationCode Defines what operation to perform. Possible values are:

[0198] 0×01 RADIO_PGM_OPERATION PROGRAM program

[0199] 0×02 RADIO_PGM_OPERATION UNPROGRAM unprogram

[0200] BYTE TypeCode Type of programming being performed.

[0201] Possible values are:

[0202] 0×01 RADIO_PGM_TYPE_CARRIER

[0203] RADIO_CARRIER struct follows.

[0204] 0×02 RADIO PGM-TYPE-VEY RADIO_KEY struct follows.

[0205] 0×03 RADIO_PGM_TYPE_ADDRESS RADIO_ADDRESS struct follows.

[0206] 0×04 RADIO_PGM_TYPE_GROUP RADIO_GROUP struct follows.

[0207] WORD wProgramDataLen Length of the ProgramData field.

[0208] WORD wCheckSumLen 2 (Length of the checksum field, not required but defined for consistency's sake)

[0209] void ProgramData One of the following data structure (based on-TypeCode):

[0210] RADIO_CARRIER CarrierInfo;

[0211] RADIO_ADDRESS AddressInfo;

[0212] RADIO_GROUP GroupInfo;

[0213] RADIO_KEY KeyInfo;

[0214] WORD wCheckSum Checksum of the entire struct except the checksum field itself. Checksum is calculated by adding up the struct byte by byte in a WORD and ignoring the overflow.

[0215] Struct RADIO_CRYPT

[0216] This struct is used for cipher functionality related IO control calls.

[0217] DWORD dwMemberValidMask A mask indicating which fields of the struct are valid.

[0218] Construct the value by ‘OR’ing one or more of the following:

[0219] 0×0001 hCryptoProv field is valid

[0220] 0×0002 dwCryptoFlags field is valid

[0221] 0×0004 dwCryptoAlgId field is valid

[0222] HCRYPTPROV hCryptoProv handle to a Cryptography Service Provider

[0223] DWORD dwCryptoAlgId Cryptography Algorithm ID, e.g. CALG_RC4

[0224] DWORD dwCryptoFlags Flags for Cryptography function CryptDeriveKey() e.g. CRYPT_EXPORTABLE

[0225] BYTE-AddressTagLen Length of the AddressTag field

[0226] BYTE GroupTagLen Length of the GroupTag field

[0227] WORD wMsgSpecificDataLen Length of MsgSpecificData field.

[0228] RADIO_TAG AddressTag Address Tag

[0229] RADIO_TAG GroupTag Service group Tag

[0230] BYTE MsgSpecificData[] Message specific data

[0231] As stated above, the I/O control calls are made from PMPC 212 to driver 210 in order to accomplish certain operations. As with the various data structures, a variety of I/o control. calls are supported in the driver API. However, only those related to programming of driver 210 and radio card 208 are discussed herein. I/O control calls have the following syntax. BOOL xxx_IOControl ( DWORD hOpenContext DWORD dwCode PBYTE pBufIn DWORD dwLenIn PBYTE pBufOut DWORD dwLenOut PDWORD pdwActualOut ) ;

[0232] Parameters

[0233] hOpenContext Specifies a handle identifying the open context of the device. The xxx Open function creates and returns this identifier.

[0234] dwcode Specifies a value indicating the I/O control operation to perform. These codes are device specific, and are usually exposed to application programmers by means of a header file.

[0235] pBufIn Points to the buffer containing data to be transferred to the device.

[0236] dwLenIn Specifies the number of bytes of data in the buffer specified for pBufln.

[0237] pBufOut Points to the buffer used to transfer the output data from the device.

[0238] dwLenOut Specifies the maximum number of bytes in the buffer specified by pBufOut

[0239] pdwActua10ut Points to DWORD buffer the function uses to return the actual number of bytes received from the device.

[0240] Return Value

[0241] Returns TRUE if the device successfully completed its specified I/O control operation, otherwise it returns FALSE.

[0242] RADIO_PROGRAM

[0243] This IOCTL call allows the caller to program or un-program an address, service group, keys, or carrier information.

[0244] Syntax

[0245] struct RADIO_PGM RadioPgm; BOOL xxx_IOControl ( DWORD hOpenContext DWORD dwCode = RADIO_PROGRAM PBYTE pBufIn = &RadioPgm DWORD dwLenIn = sizeof(RadioPgm) PBYTE pBufOut = NULL DWORD dwLenOut = 0 PDWORD pdwActualOut = &dwWriteBytes ) ;

[0246] Operation

[0247] The driver programs or un-programs the given item. For security reasons, the RadioPgm struct passed to this API is always encrypted. The driver should call the illustratively function DecryptAndValidateRadioPgmData() included in the driver support library to decrypt and validate the input data.

[0248] Remarks

[0249] When performing a programming operation (RadioPgm.OperationCode=RADIO_PGM_OPERATION_PROGRAM), if the info struct does not have all the required fields then the driver processes the command in the following manner:

[0250] 1. If the item being programmed already exists, change only those fields that exist in the info struct. Fields that are missing in the info struct retain their old values. For example, when programming an address, if the address already exists and the field AddressDescription is missing in the info struct then the old value of this field is retained. This gives the ability to change the entire item or individual fields.

[0251] 2. If the item being programmed does not exist, then depending upon the missing field, it should either take a default value or the whole programming command should be rejected.

[0252] Programming a New Carrier Field Type Default dwFrequency Required UserID Required CarrierName Optional NULL CarrierDescri Optional NULL ption Programming a new Address AddressNumber Optional (see below) AddressTag Required Status Required AddressDescript Optional NULL ion KeyTag Optional NULL ExpirationDate Optional 0x0000 Address Required

[0253] When programming a new address, AddressNumber is not required (the next available empty entry is used) but AddressTag is illustratively required. When changing an existing address, either AddressNumber or AddressTag can be used to refer to the desired address. If botn are given then AddressNumber is used.

[0254] Programming a New Service Group Field Type Default WGroupNumber Optional (see below) GroupTag Required Status Required GroupDescription Optional NULL GroupCode Required KeyTag Optional NULL ExpirationDate Optional 0x0000 AddressTag Required

[0255] When programming a new service group, wGroupNumber is not required (the next available empty entry is used) but GroupTag is illustratively required. When changing an existing service group, either GroupNumber or GroupTag can be used to refer to the desired address. If both are given then GroupNumber is used.

[0256] Programming a New Key Field Type Default KeyNumber Optional KeyTag Required AlgCode Required Key Required

[0257] When programming a new key, KeyNumber is not required (the next available empty entry is used) but KeyTag is required. When changing an existing key, either KeyNumber or KeyTag can be used to refer to the desired key. If both are given then KeyNumber is used.

[0258] RADIO_CRYPT_DERIVE_KEY

[0259] This IOCTL call allows the caller to program or un-program an address, service group, keys, or carrier information.

[0260] Syntax HCRYPTKEY hKey; BOOL xxx_IOControl ( DWORD hOpenContext DWORD dwCode = RADIO_CRYPT_DERIVE_KEY PBYTE pBufIn = &RadioCrypt DWORD dwLenIn = sizeof (RadioCrypt) PBYTE pBufOut = &hKey DWORD dwLenOut = sizeof (hKey) PDWORD pdwActualOut = &dwWriteBytes ) ;

[0261] Operation

[0262] This IO control is used by the security component of the system. It is used to get a handle to a key. Since this requires access to Electroinc ID (EID) that should illustratively not be exposed outside of the driver. A function DeriveEncryptionKey() is illustratively provided in the driver support library and is discussed in greater derail below to carry out the operation of this IO control. The driver should call this function and pass the handle to the key (hKey) returned by it. This way, a security component can get a handle to the key without getting access to the EID.

[0263] In order to implement the I/O control calls, driver 210 calls a number of the functions stored in its support library. Such functions are described below.

[0264] AnalyzeMessage()

[0265] Syntax BOOL AnalyzeMessage ( void *pMsg DWORD dwMsgLen, BOOL *pDiscard BYTE *pServiceGroupCode);

[0266] pHsg Pointer to the message bytes.

[0267] dwMsgLen Length of the message.

[0268] pDiscard Receives a BOOL value indicating whether the message should be discarded or kept.

[0269] pServiceGroupCode Receives the Service Group code.

[0270] Returns

[0271] Returns TRUE if service group code was found, FALSE otherwise.

[0272] Description

[0273] This function analyzes the message to determine if it has a service group code. It may also analyze it for other characteristics to make a determination if this message should be kept or discarded.

[0274] DeriveEncryptionKey()

[0275] Syntax BOOL DeriveEncryptionKey ( RADIO_CRYPT *pCryptInput BYTE *pbKeyValue DWORD dwKeySizeHCRYPTKEY *phKey, ) ;

[0276] Some parameters to this function are provided by the caller, the driver simply passes them to this function. The rest of the parameters are available to the driver in its internal data structure

[0277] pCrypt_Input Input to the RADIO_CRYPT_DERIVE_KEY IOCTL call.

[0278] pbKeyValue The key that needs to be used. based on the AddressTag and GroupTag fields within the RADIO_CRYPT structure (The caller to the IOCTL call provides these two fields, the driver needs to use them to locate the key stored in the Key table and then pass the key in pbKey parameter)

[0279] dwKeySize Number of bytes in the pbKeyValue parameter.

[0280] Returns

[0281] This function returns TRUE if the operation was successful, FALSE otherwise. If successful, it also returns a handle to the key produced from the given information.

[0282] Description

[0283] Encryption keys are illustratively derived based on one or more of the following information: key associated with the address, key associated with the service group, message specific data, certain flags, and an algorithm ID. This function processes all this and produces a handle to a key that can be used by the calling process to perform encryption/decryption operations.

[0284] DecryptAndValidateRadioPgmData()

[0285] Syntax BOOL DecryptAndValidateRadioPgmData ( PBYTE pInBuf = &RadioPgm DWORD dwInLen = sizeof (RadioPgm) PBYTE pKey = &ElectronicId (or Key) DWORD dwKeyLen = sizeof (ElectronicId) PBYTE pOutBuf = &DecryptedRadioPgm DWORD dwOutLen = sizeof (DecryptedRadiopgm) PDWORD pdwActualOut = &dwWriteBytes ) ;

[0286] pInBuf Pointer to the input buffer holding the programming struct RADIO_PGM.

[0287] dwInLen Size of the programming struct passed.

[0288] pKey Pointer to the buffer holding key which could Electronic ID (EID) of the device or a valid key in the key table

[0289] dwKeyLen Size of Key passed.

[0290] pOutBuf Pointer to the output buffer to receive the decrypted struct.

[0291] dwOutLen Size of the output buffer. It must be equal or greater than dwInLen.

[0292] pdwActualOut Receives number of bytes actually written into the output buffer.

[0293] Returns

[0294] This function returns TRUE if the input struct was a valid struct. The decrypted struct is placed in the output buffer. If the function finds that the data was not properly encrypted, it returns FALSE and the driver should reject the programming command.

[0295] Description

[0296] The driver programming API require that the programming information passed to it is encrypted. This ensures that only the authorized source can program the device. This function performs the decryption and validation for the RADIO_PROGRAM IO control call of the driver.

[0297]FIG. 12B is a flow diagram illustrating the operation of PMPC 212 and driver 210 in programming radio HW 208. Initially, after suitable translations are performed, PMPC 212 is provided with the programming message (via a message router) in one of the ways described above with respect to FIGS. 7 and 8, or in any other suitable way. PMPC 212 then detects, based on the header information, that the message is a programming message and invokes an appropriate IO control call to place the information from the programming message in proper form, given the data structures and the I/O control call syntax described above. This is indicated by block 326.

[0298] PMPC 212 then executes the RADIO_PROGRAM control call to driver 210, supplying the Radio Pgm struct, as described above. This is indicated by block 334.

[0299] In response to this control call, driver 210 calls the DecryptAndValidateRadioPgmData function 324 which is stored in the driver support library. This function decrypts the program message provided in the RADIO_PROGRAM I/O control call. If this function finds that the input struct was a valid struct, it returns a true value to PMPC 212 and places the decrypted struct in its output buffer for access by radio HW 208. If this function finds that the struct was not properly encrypted, it returns a false value and rejects the programming command. This is indicated by blocks 336 and 338.

[0300] A programming component configured to program the specific radio HW 208 being used then accesses the information in the output buffer of driver 210 and performs the desired programming function.

[0301] It should be noted that the actual programming data provided to radio HW 208 can be provided according to a proprietary form, and the actual programming of radio HW 208 can be done in accordance with any proprietary parameters or constraints placed on it by the manufacturer. Thus, the manufacturer is free to define any programming operations, in accordance with any proprietary method. However, by supporting the above-defined data structures, radio HW 208 can be provided with proprietary programming data in an independent, open architecture fashion, regardless of the particular programming scheme used by radio HW 208, and regardless of the particular manner in which the programming message is transmitted to mobile device 18.

[0302] Even given this device/protocol/network independence, one obstacle still remains. There is currently no efficient method of determining whether mobile device 18 actually received the programming message, and has undertaken the requested programming operation. The system in accordance with one embodiment of the present invention addresses this obstacle as well.

[0303] Once the programming has been completed as indicated by driver 210 returning a value indicating the programming message contained a valid struct, PMPC 212 preferably generates an acknowledgement message directed to originator 200, indicating the programming has been accomplished. This message is provided to sync component 28 on mobile device 18 (and shown in FIG. 1). The next time the user connects mobile device 18 to the desktop computer 16, sync. components 26 and 28 cooperate to synchronize the acknowledgement message to desktop computer 16. The next time desktop computer 16 accesses the originator 200 of the programming message, the acknowledgement message is transmitted to the originator 200 indicating that the programming has been accomplished. In an emboidment in which desktop computer 16 is provided with a web browser, such as Internet Explorer 4.0, the acknowledgement message is transmitted back to the originator 200 when the web browser next invokes the scheduler to establish an Internet connection with the originator.

[0304] Thus, it can be seen that the present invention provides a device/protocol/network independent mechanism by which mobile device 18 can be programmed. The present invention also provides amethod of encrypting data such that it can be sent in an encrypted and secured fashion from the originator 200 to mobile device 18. This mechanism allows the originator to program any suitable portions of mobile device 18, including addresses, groups, keys, validity periods, and macrotags. The present invention also provides backchannel confirmation which provides the originator with an acknowledgement that the programming has been accomplished.

[0305] Although the present invention has been described with reference to preferred embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the invention. 

What is claimed is:
 1. A programming interface on a mobile device for transferring information to and from a radio receiver on the mobile device, the programming interface including: a message processing component configured to receive messages to be delivered to the radio receiver; and a driver component coupled to the message processing component; wherein the message processing component is configured to execute a control call to the driver component specifying a control operation to be performed based on a message received, an input buffer location of an input buffer containing data to be transferred to the radio receiver, a number of bvt- of information contained in the input buffer, an output buffer location of an output buffer containing information received from the radio receiver, a maximum number of bytes of information contained in the output buffer, and an actual number of bytes received from the radio receiver; and wherein the driver component is configured to receive the control call from the message processing component and execute the specified control operation.
 2. The programming interface of claim 1 wherein the control operation is a programming operation to program values in the radio receiver and wherein the control call passes a programming data structure to the driver, the programming data structure including: a structure size portion indicative of a size of the programming data structure; a mask portion indicative of which portions in the programming data structure are valid; an operation code portion indicative of whether the programming operation is to program values or deprogram values; a type code portion indicative of a type of values to be programmed or deprogrammed; a program data portion indicative of the values to be programmed or deprogrammed; and a program data length portion indicative of a length of the program data.
 3. The programming interface of claim 2 wherein the type code portion is indicative of an encryption key to be programmed or deprogrammed and wherein the program data portion comprises a key data structure.
 4. The programming interface of claim 3 wherein the key data structure includes: a structure size portion indicative of a size of the key data structure; a mask portion indicative of which portions of the key data structure are valid; a key portion indicative of the encryption key; a key number portion indicative of a number corresponding to the encryption key; an algorithm portion indicative of an encryption algorithm to be used in conjunction with the encryption key; . a key length portion indicative of a length of the encryption key; a key tag portion indicative of a location in which the encryption key is stored; and a key tag length portion indicative of a length of the key tag portion.
 5. The programming interface of claim 2 wherein the mobile device receives messages over an address and wherein the type code portion is indicative of an address to be programmed or deprogrammed and wherein the program data portion comprises an address data structure.
 6. The programming interface of claim 5 wherein the address data structure includes: a structure size portion indicative of a size of the address data structure; a mask portion indicative of which portions of the address data structure are valid; an address portion indicative of the address; an address number portion indicative of a number corresponding to the address; a status portion indicative of a status of the address; an address tag portion indicative of a tag associated with the address portion; an expiration date portion indicative of an expiration date associated with the address, wherein subsequent messages received over the address after the expiration date are discarded; and an address tag length portion indicative.of a length of the address tag portion.
 7. The programming interface of claim 6 wherein the address data structure further includes: a key tag portion indicative of a location at which an encryption key used to decrypt messages received over the address is stored; and a key tag length portion indicative of a length of the key tag portion.
 8. The programming interface of claim 6 wherein the address data structure further comprises: an address name portion indicative of a descriptive name of the address; a description portion indicative of a textual description of messages received over the address; an address name length portion indicative of a length of the address name portion; and a description length portion indicative of a length of the description portion.
 9. The programming interface of claim 2 wherein the mobile device receives messages over an address and a group code corresponding to the address and wherein the type code portion is indicative of a group code to be programmed or deprogrammed and wherein the program data portion comprises a group code data structure.
 10. The programming interface of claim 9 wherein the group code data structure.inclules.: a structure size portion indicative of a size of the group code data structure; a mask portion indicative of which portions of the group code data structure are valid; an group code portion indicative of the group code; an group code number portion indicative of a number corresponding to the group code; a status portion indicative of a status of the group code; an expiration date portion indicative of an expiration date associated with the group code, wherein subsequent messages received over the group code after the expiration date are discarded; a group code tag portion indicative of a tag associated with the group code; an address tag portion indicative of a tag associated with the address; an address tag length portion indicative of a length of the address tag portion; and a group tag length indicative of a length of the group tag portion.
 11. The programming interface of claim 10 wherein the group code data structure further includes: a key tag portion indicative of a location at which an encryption key used to decrypt messages received over the group code is stored; and a key tag length portion indicative of a length of the key tag portion.
 12. The programming interface of claim 11 wherein the group code data structure further comprises: a group code name portion indicative of a descriptive name of the group code; a description portion indicative of a textual description of messages received over the group code; an group code name length portion indicative of a length of the group code name portion; and a description length portion indicative of a length of the description portion.
 13. The programming interface of claim 2 wherein the mobile device receives messages over an address from a carrier and wherein the type code portion is indicative of a carrier designation to be programmed or deprogrammed and wherein the program data portion comprises a carrier data structure.
 14. The programming interface of claim 13 wherein the carrier data structure includes: a structure size portion indicative of a size of the carrier data structure; a mask portion indicative of which portions of the carrier data structure are valid; a frequency portion indicative of a radio frequency at which the messages are received from the carrier; a name portion indicative of a name of the carrier; a description portion indicative of a description of message- types received from the carrier; a user identification portion indicative of an identification number associated with a user of the mobile device; an user identification length portion indicative of a length of the user identification portion; a name length indicative of a length of the name portion; and a description length portion indicative of a length of the description portion.
 15. The programming interface of claim 2 wherein the radio receiver has existing values stored therein, wherein programming data portion comprises a programming data structure having a plurality of fields, each field corresponding to a value on the radio receiver and each field containing new values to be programmed into the radio receiver, and wherein existing values on the radio receiver are left unchanged when the field in the programming data structure does not have a field corresponding to the existing value.
 16. The programming interface of claim 1 wherein the wherein the driver component includes: a function library of functions performed by the driver in executing the specified control operation.
 17. The programming interface of claim 16 wherein the function library includes: an encryption key- derivation component- for deriving an encryption key based on information provided to the driver component in the control call, wherein the driver component utilizes the encryption key derivation component to derive the encryption key, stores the encryption key at a key location in the driver component and returns a key handle indicative of the key location to the message processing component.
 18. The programming interface of claim 16 wherein the function library includes: a decryption and validation component for decrypting and validating information provided to the driver component in the control call, the driver component utilizing the decryption and validation component to decrypt and validate the information and returning a value to the message processing component indicative of whether the information is valid.
 19. The programming interface of claim 1 wherein the driver component is configured to return a value to the message processing component indicative of whether the control operation specified by the control call has been performed.
 20. A computer readable medium on a mobile device, the computer readable medium having a first data structure stored thereon, the first data structure comprising: an address information portion indicative of an address over which the mobile device receives messages; an address tag portion indicative of a tag associated with the address portion; an expiration date portion indicative of an expiration date associated with the address, wherein subsequent messages received over the address after the expiration date are discarded; a key index portion indicative of a location on the computer readable medium storing an encryption key associated with the messages received over the address; and a status portion indicative of a status of the address.
 21. The computer readable medium of claim 20 wherein the status portion is indicative of whether the address is enabled.
 22. The computer readable medium of claim 20 wherein the status portion is indicative of whether messages received over the address have a predetermined priority indicative of a time within which the messages are processed.
 23. The computer readable medium of claim 20 wherein the status portion is indicative of whether a message received over the address are enabled only under predetermined power conditions.
 24. The computer readable medium of claim 20 wherein the first data structure includes: an address name portion indicative of a descriptive name of the address.
 25. The computer readable medium of claim 20 wherein the first data structure includes: a description portion indicative of descriptive text describing the messages received over the address.
 26. The computer readable medium of claim 20 and further comprising a second data structure stored on the mobile device, the second data structure including: an encryption key portion indicative of an encryption key used to decrypt a received message; an encryption algorithm portion indicative of an encryption algorithm used to encrypt the message; and a key tag portion indicative of a key tagassociated with the encryption key.
 27. The computer readable medium of claim 26 and further comprising a third data structure stored on the mobile device, the third data structure including: a service group code portion indicative of a service group code over which the mobile device receives messages; a status portion indicative of a status of the service group code; a key index portion indicative of a location on the computer readable medium which stores an encryption key associated with the messages received over the service group code; an expiration date portion indicative of an expiration date associated with the service group code, wherein subsequent messages received over the service group code after the expiration date are discarded; and a service group tag indicative of a tag associated with the service group code.
 28. The computer readable medium of claim 27 wherein the mobile device includes a radio receiver and wherein the first, second and third data structures are stored on the radio receiver.
 29. A computer readable medium on a mobile device, the computer readable medium having a data structure stored thereon, the data structure comprising: an encryption key portion indicative of an encryption key used to decrypt a received message; an encryption algorithm portion indicative of an encryption algorithm used to encrypt the message; and a key tag portion indicative of a key tag associated with the encryption key.
 30. The computer readable medium of claim 29 wherein the mobile device includes a radio receiver and wherein the data structure is stored on the radio receiver.
 31. A computer readable medium on a mobile device, the computer readable medium having a data structure stored thereon, the data structure comprising: a service group code portion indicative of a service group code over which the mobile device receives messages; a status portion indicative of a status of the service group code; a key index portion indicative of a location on the computer readable medium which stores an encryption key associated with the messages received over the service group code; an expiration date portion indicative of an expiration date associated with the service group code, wherein subsequent messages received over the service group code after the expiration date are discarded; and a service group tag indicative of a tag associated with the service group code.
 32. The computer readable medium of claim 31 wherein the data structure comprises: a service group name portion indicative of a descriptive name for the service group code.
 33. The computer readable medium of claim 31 wherein the data structure comprises: a description portion indicative of descriptive text describing messages received over the service group code.
 34. The computer readable medium of claim 31 wherein each service group code they have associated addresses and are stored in a location arranged according to the address and then according to service group code.
 35. The computer readable medium of claim 31 wherein the mobile device includes a radio receiver and wherein the data structure is stored on the radio receiver.
 36. The computer readable medium of claim 31 wherein the computer readable medium includes a key table and wherein the key index is indicative of a location in the key table which holds the encryption key.
 37. A transmission system for transmitting information from an originator to a mobile device, the transmission system comprising: an originator component configured to receive the information to be transmitted and form a transmission message; and a receiver component configured to receive the transmission message; wherein the originator includes: a first encryption key component configured to derive a first encryption key based on a base key known by the receiver component, a first data string and a data portion including message specific data derived from the information to be transmitted; a second encryption key component configured to derive a second encryption key based on the base key, a second data string and the data portion; an encryptor configured to hash the information to be transmitted with the first encryption key to obtain a signature and to encrypt the information and the signature with the second encryption key to obtain an encrypted message; and a joiner configured to join the encrypted message with the message specific data, in unencrypted form.
 38. The transmission system of claim 37 wherein the originator comprises: a header generation component configured to receive the encrypted message and message specific data and add a header thereto to obtain the transmission message.
 39. The transmission system of claim 37 wherein the first encryption key component hashes the base key, the first data string and the message specific data to obtain a bias value and wherein the first encryption key component includes: a key generator configured to receive the bias value and generate the first encryption key based on the bias value.
 40. The transmission system of claim 37 wherein the second encryption key component hashes the base hey, the second data string and the message specific data to obtain a bias value and wherein the second encryption key component includes: a key generator configured to receive the bias value and generate the second encryption key based on the bias value.
 41. The transmission system of claim 37 wherein the originator includes: a checksum component configured to calculate a checksum over the transmission message and append the checksum thereto.
 42. The transmission system of claim 41 wherein the receiver component comprises: a processor component; and a driver component coupled to the processor component; wherein the processing component is configured to receive the transmission message and pass the transmission message to the driver component, the driver component being configured to derive the first and second encryption keys from the based key, the first and second data strings and the message specific data and decrypt the transmission message.
 43. The transmission system of claim 42 wherein the driver component further comprises: a validation component configured to calculate a checksum over the unencrypted transmission message, and compare the checksum calculated to the checksum calculated by the checksum component to determine whether the unencrypted message is valid.
 44. The transmission system of claim 37 wherein the mobile device includes a radio receiver having values stored therein, the values determining operation of the radio receiver, and wherein the transmission message comprises a programming message for programming the values in the radio receiver.
 45. A wireless transmission system for transmitting programming data to a mobile device having a oneway radio receiver thereon, the transmission system including: an originator component configured to receive the programming data and form a programming message indicative of the programming data; a transmitter component, selectively coupleable to the originator, configured to transmit the programming message to the mobile device; a mobile device processing component configured to receive the programming message and provide it to the radio receiver and to provide an acknowledge message in response to successfully providing the programming message to the radio receiver; a mobile device synchronization component coupled to the mobile device processing component; a desktop computing device selectively coupleable to the mobile device and including a desktop synchronization component operable with the mobile device synchronization component to synchronize the acknowledge message to the desktop computing device; and a desktop communication component selectively coupleable to the originator anS configured to pass the acknowledge message to the originator.
 46. The wireless transmission system of claim 45 wherein the transmitter component comprises: an originator communication component selectively coupleable to the desktop communication component and configured to transmit the programming message to the desktop computing device for synchronization to the mobile device processing component.
 47. The wireless transmission system of claim 45 wherein the transmitter component comprises: a radio transmitter configured to broadcast the programming message to the radio receiver.
 48. The wireless transmission system of claim 45 wherein the transmitter component comprises: a modem configured to transmit the programming message to the radio receiver.
 49. The wireless transmission system of claim 45 wherein the transmitter component comprises: a portable magnetic storage medium, readable by the mobile device processing component, storing the programming message.
 50. The wireless transmission system of claim 45 wherein the desktop communication component comprises a global computer network browser. 